<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ attribute name="content" type="java.lang.String" required="true" description="消息内容"%>
<%@ attribute name="type" type="java.lang.String" description="消息类型：info、success、warning、error、loading"%>
<%@ attribute name="hasBackUrl" type="java.lang.String"  description="是否需要barkurl"%>
<%@ attribute name="backUrlType" type="java.lang.String"  description="返回url类型"%>
<%@ attribute name="fromParam" type="java.lang.String"  description=""%>
<!-- 保存之前页面 -->
<c:if test="${empty backUrlType && hasBackUrl != 'false'}">
	<input type="hidden" id="BackURL" name="BackURL" value="${BackURL}">
</c:if>
	<input type="hidden" name="content" id="content" value="${content}"/>
<c:if test="${not empty backUrlType && hasBackUrl != 'false'}">
	<input type="hidden" id="BackURL" name="BackURL" value="${backUrlType}">
</c:if>
<!-- 导入等其他参数 -->
<c:if test="${not empty content}">
 <!-- 消息 -->
 	<c:if test="${empty type}">
	    <c:set var="ctype" value="${fn:indexOf(content,'失败') eq -1?'success':'error'}"/>
	</c:if>
<%-- 	<div id="messageBox" class="alert alert-${ctype} hide"> --%>
<!-- 	     <button data-dismiss="alert" class="close">×</button></div>  -->
	<script type="text/javascript">
	   var content=$('#content').val();
   	     $.jBox.tip.mess=1;
   	     $.jBox.tip(content,"${ctype}",{persistent:true,opacity:0});
   	  	 setTimeout("$.jBox.closeTip()",1000);
   	  	 
//       	 $("#messageBox").show();
	 </script>
</c:if>